function Typing(target, data, ds) {
  let content = $("#type404s" + target).text();
  if (content.length > 1) {
    content = content.substring(0, (content.length -1));
  }
  if (ds.length > 0) {
    $("#type404s" + target).text(content + data + '_');
  } else {
    $("#type404s" + target).text(content + data);
  }
  return Runing(target, ds);
}

function Runing(target, ds) {
    if (ds.length > 0) {
      let seed = Math.random();
      seed = 1 * (Math.random() * 10 + "")[0];
      if (seed > 3) {
        seed = (seed % 3) + 1;
      } 
      let ccc = ds.substring(0, seed);
      setTimeout(Typing, ((seed + 1)*100), target , ccc, ds.replace(ccc, ''));
    } else {
      if (ffffflag == 0) {
        ffffflag = 1;
        let ds2 = lang.ds2;
        setTimeout(Runing, 600, '2', ds2);
      }
    }
    return 1;
}

function CALLBACK() {
    let ds1 = lang.ds1;
    setTimeout(Runing, 800, '1', ds1);
}

function Init404() {
  if ( typeof(ffffflag) != "undefined" && ffffflag == 1) {
    $("#type404s1").text(lang.ds1);
    $("#type404s2").text(lang.ds2);
  } else {
    setTimeout(CALLBACK, 300);
  }
}